package com.yanjiali.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
* @Package: com.yanjiali.entity
* @Author: yanjiali
* @Created: 2025/5/8 15:49
*/
/**
    * 爬虫获取的第三方数据表
    */
@ApiModel(value="com-yanjiali-entity-ThirdParty")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "third_party")
@ToString
public class ThirdParty {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="主键")
    private Long id;

    /**
     * 标题
     */
    @TableField(value = "title")
    @ApiModelProperty(value="标题")
    private String title;

    /**
     * 简介
     */
    @TableField(value = "introduce")
    @ApiModelProperty(value="简介")
    private String introduce;

    /**
     * 封面图片（使用默认的）
     */
    @TableField(value = "cover")
    @ApiModelProperty(value="封面图片（使用默认的）")
    private String cover;

    /**
     * 对应链接地址
     */
    @TableField(value = "url")
    @ApiModelProperty(value="对应链接地址")
    private String url;

    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value="修改时间")
    private Date updateTime;
}